﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MethodWorx.Core.Linq;
using System.Data.Linq;
using MethodWorx.Core.DomainModel;

namespace MethodWorx.CMS.Linq
{
    public class DomainModelUnitOfWorkFactory : LinqUnitOfWorkFactory
    {
        public DomainModelUnitOfWorkFactory(DataContext context, IRepositoryRegistry repositories)
            : base(context, repositories)
        {
        }

        protected override LinqUnitOfWork CreateLinqUnitOfWork(bool inner)
        {
            return new DomainModelLinqUnitOfWork(this.context, this.repositories, inner);
        }
    }
}
